package org.example;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.WebPage;

/**
 * Homepage
 */
public class HomePage extends WebPage {

	public static void main(String[] args) {
		int a[]={2,3,1,34,22,1};
		int i,j,k,temp;
		for (i=0;i<a.length;i++)
		{
			for (k=i,j=i+1;j<a.length;j++)
			{
				if (a[j]<a[k])
				{
					k=j;
				}
			}
			if (k!=i)
			{
				temp = a[i];
				a[i] = a[k];
				a[k] = temp;
			}
		}
		for (int c=0;c< a.length;c++)
		{
			System.out.println(a[c]);
		}
	}


}
